import request from './http.js'

export default {
	//公共
	login(e) { //登录 验证码
		return request.post('user/wxLogin', e, false)
	},
	getUser() { //个人中心
		return request.get('user/index')
	},

	//公共配置
	site_config(e) { //个人中心  project_introduction=项目介绍
		return request.get('common/site_config', e)
	},

	//修改个人信息
	eitdProfile(e) {
		return request.post('user/profile', e)
	},

	//用户
	getUserIndex() { //用户首页
		return request.get('index/index')
	},
	category() { //分类
		return request.get('index/category')
	},
	shopList(e) { //门店列表-服务点
		return request.get('shop/list', e)
	},
	add_cart(e) { //添加 删除 购物车 
		return request.post('index/add_cart', e)
	},
	cartList(e) { //购物车列表
		return request.get('index/cart_info', e)
	},
	delCart(e) { //删除购物车
		return request.get('index/del_cart', e)
	},

	// 我的
	//地址管理
	getUserAddress(e) { //地址列表
		return request.get('user/getUserAddress', e)
	},
	addAddress(e) { //添加地址
		return request.post('user/addAddress', e)
	},
	setDefaultAddress(e) { //设置默认地址
		return request.post('user/setDefaultAddress', e)
	},
	delAddress(e) { //删除地址
		return request.post('user/delAddress', e)
	},
	getDefaultAddress(e) { //获取用户默认地址
		return request.get('user/getDefaultAddress', e)
	},

	//优惠券
	couponList(e) { //优惠券-领取 1领劵中心 2支付后领取
		return request.get('coupon/list', e)
	},

	receiveCoupon(e) { //优惠券领取
		return request.post('coupon/receive', e)
	},
	myCoupon(e) { //我的优惠券
		return request.get('coupon/my_coupon', e)
	},

	//支付
	yuOrder(e) { //预下单
		return request.get('order/yuOrder', e)
	},
	addOrder(e) { //统一下单 获取支付参数
		return request.post('order/addOrder', e)
	},


	//我的订单
	getOrderList(e) { //订单列表
		return request.get('order/list', e)
	},
	orderInfo(e) { //订单详情
		return request.get('order/info', e)
	},
	orderCancel(e) { //取消订单
		return request.post('order/cancel', e)
	},
	orderPay(e) { //订单支付
		return request.post('order/pay', e)
	},

	//用户统计
	userStatistics(e) {
		return request.get('user/statistics', e)
	},



	////服务端
	shopIndex(e) { //首页
		return request.get('shop/index', e)
	},
	serviceOrderList(e) { //清洗订单列表
		return request.get('service.order/list', e)
	},
	distribution(e) { //扫码分配
		return request.post('service.order/distribution', e)
	},
	statistics(e) { //服务点统计
		return request.get('shop/statistics', e)
	},
	commission_income(e) { //余额明细
		return request.get('shop/commission_income', e)
	},
	shopEdit(e) { //服务点信息修改
		return request.post('shop/edit', e)
	},
	confirmReturn(e) { //确认归还
		return request.post('service.order/confirmReturn', e)
	},
	saoReturn(e) { //扫码送回 确认送回
		return request.post('service.order/saoReturn', e)
	},
	saoReturn(e) { //提现
		return request.post('user/withdrawal', e)
	},



	////取货员端
	pickOrderList(e) { //订单列表
		return request.get('pick.order/list', e)
	},
	confirmPicking(e) { //确认取货
		return request.post('pick.order/confirm_picking', e)
	},
	pickPickings(e) { //取货员数据统计
		return request.get('pick.order/sao_pickings', e)
	},
	pickSaoReturn(e) { //扫码取货
		return request.post('pick.order/sao_picking', e)
	},
	orderMap(e) { //订单地图
		return request.get('pick.order/order_map', e)
	},


	////清洗端 取货员
	cleanOrderList(e) { //订单列表
		return request.get('clean.order/list', e)
	},
	confirmReceipt(e) { //确认入库
		return request.post('clean.order/receipt', e)
	},
	confirmDelivery(e) { //确认出库
		return request.post('clean.order/delivery', e)
	},
	cleanPickings(e) { //清洗点数据统计
		return request.get('clean.order/sao_pickings', e)
	},


}
